<%-- 
    Document   : delete_result
    Created on : 2019-6-18, 22:06:31
    Author     : 虎
--%>

<%@page import="com.jdbc.domains.Usertable1"%>
<%@page import="com.jdbc.dao.impl.Usertable1DaoImpl"%>
<%@page import="com.jdbc.daos.Usertable1Dao"%>
<%@page import="com.jdbc.domains.User"%>
<%@page import="com.jdbc.daos.UserDao"%>
<%@page import="com.jdbc.dao.impl.UserDaoImpl"%>
<%@page language="java" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.util.*" %>
<%@page import="java.io.*" %>
<%@page import="javax.servlet.*" %>
<%@page errorPage="error.jsp" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>删除结果页面！</title>
        <style>
            #yyy{               
                position: absolute;
                top: 120px;
                text-align: center;
            }
        </style>
    </head>
    <body style="background:url(myphoto.png);background-size:cover;">
<%
            String job_number=request.getParameter("bianhao");
            String ID=request.getParameter("id");
            int i;
            if(job_number.equals("")&&ID.equals("")){
%>
        <h1 id="yyy">
            删除失败！员工编号和身份证号都为空··· 
        </h1>
<%
            }else{
                if(job_number.equals(""))i=2;
                else i=1;
                if(i==1){
                    Usertable1DaoImpl udi=new Usertable1DaoImpl();
                    udi.delete(job_number, i);
%>
                    <h1 id="yyy" align="center">
                    员工工号为：<%=job_number%>的员工已被删除成功··· <br>
                    </h1>
<%
                }else{
                    Usertable1DaoImpl udi=new Usertable1DaoImpl();
                    udi.delete(ID, i);
%>
                    <h1 id="yyy" align="center">
                    身份证号为：<%=ID%>的员工已被删除成功··· <br>
                    </h1>
<%
                }
            }
%>
    </body>
</html>